<template>
  <BasicDrawer v-bind="$attrs" @register="register" title="Drawer Title" width="50%">
    <SalesOrderStatisticsProduct  :fenxiaoNick="fenxiaoNick" :consignTime="consignTime"/>
  </BasicDrawer>
</template>
<script lang="ts">
  import { defineComponent ,ref} from 'vue';
  import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';

  import SalesOrderStatisticsProduct from '../../salesOrderStatisticsProduct/FSalesOrderStatisticsProductList.vue';
  export default defineComponent({
    components: { BasicDrawer, SalesOrderStatisticsProduct},
    setup() {
    const fenxiaoNick = ref(null);
    const consignTime = ref(null);

      const [register] = useDrawerInner((data) => {
      // 这里接收从父组件传入的参数
        fenxiaoNick.value = data.fenxiaoNick;
        consignTime.value = data.consignTime;
      });
      return { register , fenxiaoNick, consignTime};
    },
  });
</script>
